package com.homedo.odin.solution.service;

import com.homedo.core.common.base.service.BaseService;
import com.homedo.odin.solution.dao.BrandTypeMapper;
import com.homedo.odin.solution.model.entity.BrandType;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * <p> 品牌分类关系表 服务实现类 </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
@Service
public class BrandTypeServiceImpl extends BaseService<BrandTypeMapper, BrandType> {

    public void deleteByBrandId(Integer brandId) {
        baseMapper.deleteByBrandId(brandId);
    }

    public BrandType selectOne(BrandType brandType) {
        return baseMapper.selectOne(brandType);
    }

    public List<Integer> getTypeIds8BrandId(Integer brandId) {
        return baseMapper.getTypeIds8BrandId(brandId);
    }
}
